<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<meta http-equiv=”content-type” content=”text/html;charset=UTF-8″ />
<title>Datingish <%= controller.action_name %></title>
<%= stylesheet_link_tag 'scaffold' %>

</head>
<body>
<div style="border-bottom:solid 1px black;">
Dating-ish

<span style="float:right;">
  <% if logged_in? %>
    Logged in as: <%= link_to h(current_user.login.capitalize), user_path(current_user) %>
    <%= link_to 'Edit Profile', edit_user_path(current_user) %>
    <%= link_to 'Change Password', change_password_path %>
    <%= link_to 'Log Out', logout_url %>
    <% if current_user.has_role?('administrator') %>
        <%= link_to 'Administer Users', users_path %>
      <% end %>
  <% else %>
	<%= link_to 'Log In', new_session_path %>
	<%= link_to 'Sign Up', new_user_path %>
	<%= link_to 'Forgot Password?', forgot_password_path %>
  <% end %>
</span>
</div>
<p style="color: green"><%= flash[:notice] %></p>

<%= yield %>

</body>
</html>